import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router'

import { createPinia } from 'pinia'
const pinia = createPinia()

import {createPersistedState} from'pinia-persistedstate-plugin'
const persist = createPersistedState()
//pinia使用持久化插件
pinia.use(persist)

// 使用中文语言包，解决分页条中文问题
import locale from 'element-plus/dist/locale/zh-cn.js'

let app = createApp(App)

// app.use(ElementPlus)
app.use(ElementPlus, { locale })
app.use(router);
app.use(pinia);
app.mount('#app')
